package com.dale.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dale.common.dto.BlogDto;
import com.dale.entity.Blog;
import com.dale.entity.MetaBlog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Gyt
 * @create 2021-05-24 - 13:44
 */
@Mapper
public interface MetaBlogMapper extends BaseMapper<MetaBlog> {

    //要自己写 动态sql 分类查找   还需要分页
    IPage<BlogDto> queryBlogByMeta(Page<BlogDto> page, List metas);

    //查询该博客的分类
    List<String> queryBlogMetas(Long bid);

}
